#ifndef __ADC_H
#define __ADC_H	
#include "sys.h"
#include "stm32f10x_adc.h"

//----------编号----------
#define adc1                ADC1
#define adc1_gpio_port      GPIOA

//----------时钟----------
#define adc1_clk            RCC_APB2Periph_ADC1
#define adc1_gpio_clk       RCC_APB2Periph_GPIOC
#define adc1_dma1_clk       RCC_AHBPeriph_DMA1

//----------通道----------
#define noc                 1

#define adc1_channel1       ADC_Channel_1
#define adc1_ch1_gpio_pin   GPIO_Pin_1

#define adc1_dma1_channel1  DMA1_Channel1

void adc1_init(void);

extern uint16_t ADC_ContertedValue[2];
 
#endif 
